package com.weic.design.singleton;

/**
 * 静态内部类的方式
 */
public class SingleTon03 {

    private SingleTon03() {

    }

    public static SingleTon03 getInstance(){
        return SingleTon03Holder.INSTANCE;
    }
    static class SingleTon03Holder{
        public static final SingleTon03 INSTANCE = new SingleTon03();
    }
}
